Don't write empty URLs to LMX format.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 4 Apr 2008 15:58:21 +0000 (15:58 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 4 Apr 2008 15:58:21 +0000 (15:58 +0000)
gpsbabel/lmx.c

index 42364b31d711d3909d37e05691386737d1cfcc17..5082a0cc06ddcceffe2e864c8653b00fe9520471 100644 (file)
@@ -90,7 +90,7 @@ lmx_print(const waypoint *wpt)
        }
        gbfprintf(ofd, "        </lm:coordinates>\n");
 
-       if (wpt->url) {
+       if (wpt->url && wpt->url[0]) {
                gbfprintf(ofd, "        <lm:mediaLink>\n");
                if (wpt->url_link_text)
                        lmx_write_xml(5,"lm:name", wpt->url_link_text);